<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Closure</title>
  </head>
  <body></body>
  <script>
    function makeSalary(base) {
      return function (performance) {
        return base + performance
      }
    }

    const salaryLevel1 = makeSalary(15000)
    const salaryLevel2 = makeSalary(17000)

    console.log(salaryLevel1(4000))
    console.log(salaryLevel2(6000))
  </script>
</html>
